package my.sample.dp.basics;

public class Father extends Adult {
	
	String marriedTo;

	@Override
	public boolean isRightPerson() {
		if ( marriedTo == null ) {
			return false;
		} else {
			return true;
		}
	}

	public String getMarriedTo() {
		return marriedTo;
	}

	public void setMarriedTo(String marriedTo) {
		this.marriedTo = marriedTo;
	}
}